package com.hyh.spring.service.impl;

import com.hyh.spring.dao.PaymentDao;
import com.hyh.spring.model.Payment;
import com.hyh.spring.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsPackage: com.hyh.spring.service.impl
 * @ClassName PaymentServiceImpl
 * @Author: hyhWTX
 * @CreateTime: 2023-03-27  21:18
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
